<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName() + ":"
      + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="关键词1,关键词2，关键词3,关键词4,……" />
<meta name="Description" content="你网页的简述" />
<meta name="Robots" content="All" />
<meta name="Generator" content="Dreamweaver" />
<title>教师领书查询</title>
<link href="<%=path%>/static/css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.STYLE1 {color: #333333}
-->
</style>
</head>
<script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
<script language="JavaScript">
	function t() {
		var t = ${not empty requestScope.list ? "false" : "true"};
		if(t==true){
			
		}else{
			var begin = $("#begin").attr("href");
			var next = $("#next").attr("href");
			var pre = $("#pre").attr("href");
			var end = $("#end").attr("href");
			var go = $("#go").attr("action");
			begin = begin + "&list=${requestScope.list}";
			next = next + "&list=${requestScope.list}";
			pre = pre + "&list=${requestScope.list}";
			end = end + "&list=${requestScope.list}";
			go = go + "&list=${requestScope.list}";
			$("#begin").attr("href",begin);
			$("#next").attr("href",next);
			$("#pre").attr("href",pre);
			$("#end").attr("href",end);
			$("#go").attr("action",go);
		}
			
	}
</script>

<body onload="t()">
<h3 id="subTitle">教师领书查询</h3>
<form name="" method="post" action="<%=path%>/deliverToTeacherServlet?status=query&currentPage=0">
<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="table2">
<tr>
		<td nowrap="nowrap">按出库时间查询：
			 <input name="start" type="text" class="input2""/>
			 至
			 <input name="end" type="text" class="input2" />
			 &nbsp;&nbsp;教师姓名：<input name="name" type="text" class="input2" size="10" maxlength="10" />(*可选)
			 &nbsp;&nbsp;<input name="Submit" type="submit" class="buttonInp" value="查 询" /></td>
	</tr>
</table>
</form>

<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" class="table" style="margin-top:10px;">
  <tr>
    <th width="16%" align="center" nowrap="nowrap" class="title2">教材名称</th>
    <th width="13%" align="center" nowrap="nowrap" class="title2">版次</th>
    <th width="13%" align="center" nowrap="nowrap" class="title2">作者</th>
    <th width="17%" align="center" nowrap="nowrap" class="title2">出版社</th>
    <th width="7%" align="center" nowrap="nowrap" class="title2">单价</th>
    <th width="7%" align="center" nowrap="nowrap" class="title2">操作员</th>
    <th width="16%" align="center" nowrap="nowrap" class="title2">出库时间</th>
    <th width="7%" align="center" nowrap="nowrap" class="title2">教师姓名</th>
    <th width="7%" align="center" nowrap="nowrap" class="title2">数量</th>
  </tr>
    <c:forEach var="dtt" items="${requestScope.dtts }" varStatus="id">
  <tr class="within2bg">
    <td align="center">${dtt.getTextBook().getName() }</td>
    <td align="center">${dtt.getTextBook().getEdit() }</td>
    <td align="center">${dtt.getTextBook().getAuthor() }</td>
    <td align="center">${dtt.getTextBook().getPublishCompany() }</td>
    <td align="center">${dtt.getTextBook().getPrice() }</td>
    <td align="center">${dtt.getAdmin().getName() }</td>
    <td align="center">${dtt.getDeliverTime() }</td>
    <td align="center">${dtt.getName() }</td>
    <td align="center">${dtt.getAmount() }</td>
  </tr>
  </c:forEach>
</table>
</body>
</html>